package com.shujia.traffic.common

import scala.collection.mutable
import scala.io.{BufferedSource, Source}

object WfkjUtils {
  val wfkjMap: mutable.Map[String, List[String]] = mutable.Map[String, List[String]]()
  // 加载文件
  val bs: BufferedSource = Source
    .fromURL(getClass.getClassLoader.getResource("wfkj.txt"))

  bs.getLines()
    .foreach(line => {
      val splits: Array[String] = line.split("=")
      val wflx: String = splits(0)
      wfkjMap.put(wflx, splits(1).split(",").toList)
    })

  bs.close()

}
